Fix 'help-view-source' for variables defined in C
authorEshel Yaron <me@eshelyaron.com>
Thu, 23 May 2024 13:02:05 +0000 (15:02 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 May 2024 20:14:14 +0000 (22:14 +0200)
commit52acabcbe8eeb688640e18884ba8a15635ca7062
treee70b2437d4feff8b7ba3124d8010b334434f5aef
parente1789f66ac9ada9344fb22b2a191d61216f95459
Fix 'help-view-source' for variables defined in C

This fixes an issue that Juri Linkov mentioned in Bug#71117.

* lisp/help-mode.el (help-function-def--button-function): When
searching for the definition of a variable, make sure to call
'help-C-file-name' with KIND argument set to 'var'.
lisp/help-mode.el